package ds.factcom.view.validate;

import ds.factcom.exception.EmptyStringException;
import ds.factcom.exception.FloatNumberFormatException;

/**
 * 
 * @author Javier De Luca, Maximiliano Herrera, Matias Samblancat
 *
 */

public class ValidatorProduct extends Validator {

	public static void isFloat(String string) throws EmptyStringException, FloatNumberFormatException {
		isNotEmpty(string);
		try{
			Float.valueOf(string);
		}catch (NumberFormatException e) {
			throw new FloatNumberFormatException();
		}
	}

}
